//
//  STBaseView.m
//  赛拓
//
//  Created by 王磊 on 7/28/16.
//  Copyright © 2016 立金所. All rights reserved.
//

#import "STBaseView.h"

@implementation STBaseView

- (NSMutableArray *)dataArray {
    if (!_dataArray) {
        _dataArray = [NSMutableArray array];
    }
    return _dataArray;
}

+ (instancetype)instance {
    return [[self alloc]initWithFrame:CGRectZero];
}
+ (instancetype)instanceWithFrame:(CGRect)frame {
    return [[self alloc]initWithFrame:frame];
}
- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        
        [self commitInit];
    }
    return self;
}
- (void)commitInit {
    
    self.backgroundColor = [UIColor whiteColor];
    
}
- (void)updateData:(id)data {
    
    
}
@end
